import request from '@/utils/request'

// 查询厂区灭鼠装置管理记录列表
export function listDeratization(query) {
  return request({
    url: '/Productionline/deratization/list',
    method: 'get',
    params: query
  })
}

// 查询厂区灭鼠装置管理记录详细
export function getDeratization(id) {
  return request({
    url: '/Productionline/deratization/' + id,
    method: 'get'
  })
}

// 新增厂区灭鼠装置管理记录
export function addDeratization(data) {
  return request({
    url: '/Productionline/deratization',
    method: 'post',
    data: data
  })
}

// 修改厂区灭鼠装置管理记录
export function updateDeratization(data) {
  return request({
    url: '/Productionline/deratization',
    method: 'put',
    data: data
  })
}

export function checkDeratization(data) {
  return request({
    url: '/Productionline/deratization/check',
    method: 'put',
    data: data
  })
}
// 删除厂区灭鼠装置管理记录
export function delDeratization(id) {
  return request({
    url: '/Productionline/deratization/' + id,
    method: 'delete'
  })
}
